#include <iostream>
#include <fstream>

#include <stdlib.h>

int main(int argc, char** argv)
{
	int lines = 105120;
	if (argc == 2)
	{
		lines = atoi(argv[1]);
	}
	
	std::ofstream file("test.csv");
	if (!file.is_open())
	{
		std::cerr<<"could not open test.csv for writing"<<std::endl;
		exit(1);
	}
	
	std::string line;
	for (int j = 0; j < 450; ++j)
	{
		line += "0123,";
	}
	for (int i = 0; i < lines; ++i)
	{
		file<<line<<"\n";
	}
	
	return 0;
}
